# -*- coding: utf-8 -*-
class Table(list):

    def __init__(self, rows, cols):
        self.ROWS = rows
        self.COLS = cols
        for i in range(rows):
            self.append([])
        for l in self:
            for i in range(cols):
                l.append(None)

    def add(self, x, y, value):
        self[x][y] = value


